<!DOCTYPE html>
<html>
<head>
    <title>自助缴费</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
">

    <link rel="stylesheet" href="/static/lib/weui.min.css">
    <link rel="stylesheet" href="/static/css/jquery-weui.css">
    <link rel="stylesheet" href="/static/css/proview.css">

</head>

<body ontouchstart>

<header class='demos-header'>
    <h1 class="demos-title">${order.patCode}</h1>
</header>

<br class="weui-form-preview">
<div class="weui-form-preview__hd">
    <div class="weui-form-preview__item">
        <label class="weui-form-preview__label" id="payNO" atr="${order.payNO}">付款金额</label>
        <em class="weui-form-preview__value" id="entAmout" atr="${order.entAmout}">${order.entAmout}</em>
    </div>
</div>
<#list list as pres>
<div class="weui-form-preview__bd">
    <div class="weui-form-preview__item">
        <label class="weui-form-preview__label">项目名称</label>
        <span class="weui-form-preview__value">${pres.orName}</span>
    </div>
    <div class="weui-form-preview__item">
        <label class="weui-form-preview__label">就诊科室</label>
        <span class="weui-form-preview__value">${pres.deptName}</span>
    </div>
    <div class="weui-form-preview__item">
        <label class="weui-form-preview__label">开单医生</label>
        <span class="weui-form-preview__value">${pres.doctorName}</span>
    </div>
    <div class="weui-form-preview__item">
        <label class="weui-form-preview__label">费用小计</label>
        <span class="weui-form-preview__value">${pres.presAmt}元</span>
    </div>
</div>
</br>
</#list>
<!--    <div class="weui-form-preview__ft">-->
<!--        <button type="submit" class="weui-form-preview__btn weui-form-preview__btn_primary" href="javascript:">支付</button>-->
<!--    </div>-->
</div>
<div class="weui-btn-area">
    <a class="weui-btn weui-btn_primary" href="javascript:" id="doConfirm">支付</a>
</div>

<script src="/static/lib/jquery-2.1.4.js"></script>
<script src="/static/lib/fastclick.js"></script>
<script>
    $(function () {
        FastClick.attach(document.body);
    });
</script>
<script>
    $("#doConfirm").click(function () {
        var entAmout = $('#entAmout').attr("atr");
        $.toast('跳转!' + entAmout,'cancel');
        var payNO = $('#payNO').attr("atr");
        $.toast('跳转!' + payNO,'cancel');
        window.location.href="/pay?payNO=" + payNO + "&entAmout=" + entAmout;
        //var patient_id = $('#apc_pati').attr("atr");
        //alert(patient_id);
        // var record_sn = $('#apc_sn').attr("atr");
        // if ( patient_id == undefined || patient_id == ''){
        //     $.toast('请选择一个就诊人!','cancel');
        //     return;
        // }
        // $.ajax({
        //     type : "post",
        //     url : "/doConfirmComplete",
        //     dataType : "json",
        //     data :{
        //         patient_id:patient_id,
        //         record_sn:record_sn
        //     },
        //     success : function(response){
        //         alert(response);
        //         if (response.status == 'ok'){
        //             window.location.href="/doConfirmSuccess";
        //         } else {
        //             window.location.href="/doConfirmFail";
        //         }
        //     },
        //     error : function(response){
        //         alert("数据传输失败!" + response);
        //     }
        // });
    });
</script>
<script src="/static/js/jquery-weui.js"></script>

</body>
</html>
